package com.neuedu.yunong.service;

import java.util.List;

import com.neuedu.yunong.domain.YunongFamilyMemberInfo;
import com.neuedu.yunong.domain.YunongHouseholdInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 户主信息Service接口
 *
 * @author zl
 * @date 2024-12-10
 */
public interface IYunongHouseholdInfoService extends IService<YunongHouseholdInfo>
{
    /**
     * 查询户主信息
     *
     * @param id 户主信息主键
     * @return 户主信息
     */
    public YunongHouseholdInfo selectYunongHouseholdInfoById(Long id);

    /**
     * 查询户主信息列表
     *
     * @param yunongHouseholdInfo 户主信息
     * @return 户主信息集合
     */
    public List<YunongHouseholdInfo> selectYunongHouseholdInfoList(YunongHouseholdInfo yunongHouseholdInfo);

    /**
     * 新增户主信息
     *
     * @param yunongHouseholdInfo 户主信息
     * @return 结果
     */
    public int insertYunongHouseholdInfo(YunongHouseholdInfo yunongHouseholdInfo);

    /**
     * 修改户主信息
     *
     * @param yunongHouseholdInfo 户主信息
     * @return 结果
     */
    public int updateYunongHouseholdInfo(YunongHouseholdInfo yunongHouseholdInfo);

    /**
     * 批量删除户主信息
     *
     * @param ids 需要删除的户主信息主键集合
     * @return 结果
     */
    public int deleteYunongHouseholdInfoByIds(Long[] ids);

    /**
     * 删除户主信息信息
     *
     * @param id 户主信息主键
     * @return 结果
     */
    public int deleteYunongHouseholdInfoById(Long id);

    //插入户主及家庭成员信息
    public int saveHouseholdWithMembers(YunongHouseholdInfo householdInfo, List<YunongFamilyMemberInfo> familyMembers);
}
